﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.Master" AutoEventWireup="true" CodeBehind="~/Staff/AddStaff.aspx.cs" Inherits="OpenSIS.Staff.AddStaff" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left">
                <span class="heading">
                    <asp:Literal ID="ML_0038" runat="server" meta:resourcekey="ML_0038">Add Staff</asp:Literal></span>
            </td>
            <td style="height: 30px;" align="right">
                <%--<asp:ImageButton ID="ibtnAdd" CausesValidation="false" runat="server" Visible="false"
                    ImageUrl="~/App_Themes/main/images/add.png" OnClick="ibtnAdd_Click" />--%>
            </td>
        </tr>
    </table>
    <div class="addstudent_container">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="viewformtab_top">
                    &nbsp;
                </td>
                <td valign="top">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="viewformtab_content" align="right">
                    <div style="z-index: 999; width: 210px;" align="right">
                        <asp:TreeView ID="tvCategories" ExpandDepth="0" runat="server" ShowLines="false"
                            LineImagesFolder="~/TreeLineImages" OnSelectedNodeChanged="tvCategories_SelectedNodeChanged">
                            <RootNodeStyle CssClass="" />
                            <LeafNodeStyle CssClass="viewformtab_leaf" />
                            <ParentNodeStyle CssClass="" />
                            <HoverNodeStyle CssClass="viewformtab" />
                            <SelectedNodeStyle CssClass="viewformtab_select" />
                            <NodeStyle CssClass="" />
                        </asp:TreeView>
                    </div>
                    <asp:HiddenField ID="hdnCatId" runat="server" />
                </td>
                <td style="padding: 10px;" valign="top" class="addstudent_content">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="left" valign="top">
                                <asp:Label ID="lblCatName" runat="server"></asp:Label>
                                <asp:MultiView ID="mvCategories" runat="server" ActiveViewIndex="0">
                                    <asp:View ID="ViewDemoGraphic" runat="server">
                                        <table>
                                            <tr>
                                                <td valign="top">
                                                    <table>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0044" runat="server" meta:resourcekey="ML_0044">Staff ID</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:TextBox ID="txtStaffId" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="txtStaffId"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator25"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0047" runat="server" meta:resourcekey="ML_0047">Alternate ID</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:TextBox ID="txtAltrntId" runat="server"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0049" runat="server" meta:resourcekey="ML_0049">Salutation</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlSalutation" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ControlToValidate="ddlSalutation"
                                                                    Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator27"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0052" runat="server" meta:resourcekey="ML_0052">First Name</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:TextBox ID="txtStaFrstNam" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtStaFrstNam"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator13"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0055" runat="server" meta:resourcekey="ML_0055">Middle Name</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:TextBox ID="txtStaMidlNam" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0057" runat="server" meta:resourcekey="ML_0057">Last Name</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:TextBox ID="txtStalstNam" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtStalstNam"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator13"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0060" runat="server" meta:resourcekey="ML_0060">Suffix</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlSuffix" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="ddlSuffix"
                                                                    Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator26"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0063" runat="server" meta:resourcekey="ML_0063">Gender</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlGender" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ControlToValidate="ddlGender"
                                                                    Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator28"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0066" runat="server" meta:resourcekey="ML_0066">Date of Birth</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:TextBox ID="txtDOB" runat="server"></asp:TextBox>
                                                                <asp:ImageButton ID="calImg1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                    CausesValidation="false" AlternateText="Select Date Of Birth" runat="server"
                                                                    meta:resourcekey="calImg1" />
                                                                <cc1:CalendarExtender ID="CalDobDate" runat="server" PopupButtonID="calImg1" TargetControlID="txtDOB">
                                                                </cc1:CalendarExtender>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtDOB"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator16"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0071" runat="server" meta:resourcekey="ML_0071">Ethnicity</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlEthnicity" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlEthnicity"
                                                                    Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please select Ethnicity</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator10"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0074" runat="server" meta:resourcekey="ML_0074">Primary Language</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlLang" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="ddlLang"
                                                                    Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please select a language</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator17"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0077" runat="server" meta:resourcekey="ML_0077">Secondary Language</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlSecnLang" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0079" runat="server" meta:resourcekey="ML_0079">Third Language</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:DropDownList ID="ddlThrdLang" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0081" runat="server" meta:resourcekey="ML_0081">Disability</asp:Literal>
                                                            </td>
                                                            <td align="left">
                                                                <asp:RadioButtonList ID="rbtnDisability" runat="server" RepeatDirection="Horizontal"
                                                                    OnSelectedIndexChanged="rbtnDisability_SelectedIndexChanged" AutoPostBack="true">
                                                                    <asp:ListItem OnClick="RadioButtonFuncdisability(this);" Value="Y" meta:resourcekey="ML_0083">Yes</asp:ListItem>
                                                                    <asp:ListItem OnClick="RadioButtonFuncdisability(this);" Value="N" meta:resourcekey="ML_0084">No</asp:ListItem>
                                                                </asp:RadioButtonList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="rbtnDisability"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>"
                                                                    ValidationGroup="vgDemoInfo" meta:resourcekey="RequiredFieldValidator21"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <div id="divDisability" style="display: none">
                                                                    <table>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0086" runat="server" meta:resourcekey="ML_0086">Disability Description</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:TextBox ID="txtDisDesc" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <%-- upload photo--%>
                                                <td align="center" valign="top" style="padding-top: 30px;">
                                                    <div style="background-image: url(../App_Themes/main/images/bevel_horline.png); background-repeat: repeat-x;
                                                        background-position: left top; padding-top: 10px; padding-left: 5px;">
                                                        <div class="img_placeholder" id="divOuter" runat="server">
                                                            <div class="img_padding2" id="divPhotoUpload" runat="server" onmouseover="ShowHyperlink();"
                                                                onmouseout="HideHyperlink();" style="background-image: url('../App_Themes/main/images/no_pic.png');
                                                                background-repeat: no-repeat; background-position: center; width: 125px; height: 125px;">
                                                                <%--  <img name="" src="../App_Themes/main/images/no_pic.png" id="imgStudentPhoto" runat="server" width="107" height="115"/>--%>
                                                                <a href='PhotoUpload.aspx' rel="lyteframe" style="cursor: pointer;" target="_blank"
                                                                    rev="width: 620px; height: 510px; scrolling: no; border:0px; margin:0px; top:0px;">
                                                                    <div style="text-align: center; background-color: #fff; height: 15px; padding: 8px 3px 8px 3px;
                                                                        display: none; filter: alpha(opacity=70);" id="divLabel" runat="server">
                                                                        <asp:Label ID="lblUploadPhoto" CssClass="darkblue" runat="server" Text="Upload Photo"
                                                                            Style="z-index: 99999;" meta:resourcekey="lblUploadPhoto"></asp:Label>
                                                                    </div>
                                                                </a>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                                <%--upload photo--%>
                                            </tr>
                                        </table>
                                    </asp:View>
                                    <asp:View ID="ViewAddContact" runat="server">
                                        <table>
                                            <tr>
                                                <td valign="top">
                                                    <table>
                                                        <tr>
                                                            <td valign="top">
                                                                <table>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <asp:Literal ID="ML_0090" runat="server" meta:resourcekey="ML_0090">Home address</asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <table>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0091" runat="server" meta:resourcekey="ML_0091">Street address 1</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtAdd1" runat="server"></asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="rfvPriAdd1" runat="server" ControlToValidate="txtAdd1"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left Blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="rfvPriAdd1"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0094" runat="server" meta:resourcekey="ML_0094">Street address 2</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtAdd2" runat="server"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0096" runat="server" meta:resourcekey="ML_0096">City</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCity"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left Blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator1"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0099" runat="server" meta:resourcekey="ML_0099">State</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:DropDownList ID="ddlState" runat="server" CssClass="">
                                                                                        </asp:DropDownList>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlState"
                                                                                            Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select a state</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator2"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0102" runat="server" meta:resourcekey="ML_0102">Zip/Postal Code</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtZip" runat="server" MaxLength="10"></asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtZip"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator3"></asp:RequiredFieldValidator>
                                                                                        <asp:RegularExpressionValidator ID="regexZipHome" runat="server" ControlToValidate="txtZip"
                                                                                            ValidationGroup="vgAddrInfo" ValidationExpression="^[0-9]+$" ErrorMessage="<div align='center' class='alert'>Please enter valid Zip Code</div>"
                                                                                            meta:resourcekey="regexZipHome"></asp:RegularExpressionValidator>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                            <td valign="top">
                                                                <table>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <asp:Literal ID="ML_0106" runat="server" meta:resourcekey="ML_0106">Mailing address</asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <table>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:CheckBox ID="chkSame" runat="server" />
                                                                                        <asp:Literal ID="ML_0154" runat="server" meta:resourcekey="ML_0154">Same as Home Address</asp:Literal>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0155" runat="server" meta:resourcekey="ML_0155">P.O Box</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtPObox" runat="server"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0157" runat="server" meta:resourcekey="ML_0157">Street Address 1</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtSecnAdd1" runat="server"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0159" runat="server" meta:resourcekey="ML_0159">Street Address 2</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtSecnAdd2" runat="server"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0161" runat="server" meta:resourcekey="ML_0161">City</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtSecnCity" runat="server"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0163" runat="server" meta:resourcekey="ML_0163">State</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:DropDownList ID="ddlSecnState" runat="server" CssClass="">
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0165" runat="server" meta:resourcekey="ML_0165">Zip/Postal Code</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtSecnZip" runat="server" MaxLength="10"></asp:TextBox>
                                                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtSecnZip"
                                                                                            ValidationGroup="vgAddrInfo" ValidationExpression="^[0-9]+$" ErrorMessage="<div align='center' class='alert'>Please enter valid Zip Code</div>"
                                                                                            meta:resourcekey="RegularExpressionValidator1"></asp:RegularExpressionValidator>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <table>
                                                        <tr>
                                                            <td valign="top">
                                                                <table>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <asp:Literal ID="ML_0168" runat="server" meta:resourcekey="ML_0168">Contact Information</asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <table>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0169" runat="server" meta:resourcekey="ML_0169">Home Phone</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtHomePhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHomePhn" Display="Dynamic"
                                                                                            ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo"
                                                                                            meta:resourcekey="RequiredFieldValidator4"></asp:RequiredFieldValidator>
                                                                                        <%--  <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtHomePhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0172" runat="server" meta:resourcekey="ML_0172">Mobile Phone</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtMobPhn" runat="server"></asp:TextBox>
                                                                                        <%--  <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtMobPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0174" runat="server" meta:resourcekey="ML_0174">Office Phone</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtOffcPhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtOffcPhn" Display="Dynamic"
                                                                                            ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo"
                                                                                            meta:resourcekey="RequiredFieldValidator6"></asp:RequiredFieldValidator>
                                                                                        <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtOffcPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0177" runat="server" meta:resourcekey="ML_0177">Work Email</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtWrkEmail" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtWrkEmail" Display="Dynamic"
                                                                                            ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgAddrInfo"
                                                                                            meta:resourcekey="RequiredFieldValidator7"></asp:RequiredFieldValidator>
                                                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtWrkEmail"
                                                                                            ValidationGroup="vgAddrInfo" ValidationExpression="^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$"
                                                                                            ErrorMessage="<div align='center' class='alert'>Please enter valid E-mail</div>"
                                                                                            Enabled="True" Display="Dynamic" meta:resourcekey="RegularExpressionValidator5"></asp:RegularExpressionValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0181" runat="server" meta:resourcekey="ML_0181">Personal Email</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtPersEmail" runat="server"></asp:TextBox>
                                                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtPersEmail"
                                                                                            ValidationGroup="vgAddrInfo" ValidationExpression="^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$"
                                                                                            ErrorMessage="<div align='center' class='alert'>Please enter valid Email</div>"
                                                                                            Enabled="True" Display="Dynamic" meta:resourcekey="RegularExpressionValidator6"></asp:RegularExpressionValidator>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                            <td valign="top">
                                                                <table>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <asp:Literal ID="ML_0184" runat="server" meta:resourcekey="ML_0184">Emergency Contact Information</asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="top">
                                                                            <table>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0185" runat="server" meta:resourcekey="ML_0185">First Name</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtEmrgnFrstNam" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEmrgnFrstNam"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator5"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0188" runat="server" meta:resourcekey="ML_0188">Last Name</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtEmrgnLastNam" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtEmrgnLastNam"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator9"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0191" runat="server" meta:resourcekey="ML_0191">Relationship</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:DropDownList ID="ddlRelation" runat="server" CssClass="">
                                                                                        </asp:DropDownList>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="ddlRelation"
                                                                                            Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator22"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0194" runat="server" meta:resourcekey="ML_0194">Home Phone</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtEmrgnHomPhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator23" runat="server" ControlToValidate="txtEmrgnHomPhn"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator23"></asp:RequiredFieldValidator>
                                                                                        <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtEmrgnHomPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0197" runat="server" meta:resourcekey="ML_0197">Work Phone</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtEmrgnWrkPhn" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                                                            ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtEmrgnWrkPhn"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                                            ValidationGroup="vgAddrInfo" meta:resourcekey="RequiredFieldValidator24"></asp:RequiredFieldValidator>
                                                                                        <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="txtEmrgnWrkPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone Number Invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0200" runat="server" meta:resourcekey="ML_0200">Mobile Phone</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtEmrgnMobPhn" runat="server"></asp:TextBox>
                                                                                        <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" ControlToValidate="txtEmrgnMobPhn" ValidationGroup="vgAddrInfo" ValidationExpression="^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$" ErrorMessage="<div align='center' class='alert'>Phone Number Invalid</div>" Enabled="True" Display="Dynamic"></asp:RegularExpressionValidator>--%>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0202" runat="server" meta:resourcekey="ML_0202">Email</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtEmrgnEmail" runat="server"></asp:TextBox>
                                                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="txtEmrgnEmail"
                                                                                            ValidationGroup="vgAddrInfo" ValidationExpression="^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$"
                                                                                            ErrorMessage="<div align='center' class='alert'>E-mail Invalid</div>" Enabled="True"
                                                                                            Display="Dynamic" meta:resourcekey="RegularExpressionValidator9"></asp:RegularExpressionValidator>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:View>
                                    <asp:View ID="ViewSchoolInfo" runat="server">
                                        <table>
                                            <tr>
                                                <td align="left">
                                                    <asp:Literal ID="ML_0206" runat="server" meta:resourcekey="ML_0206">Profile</asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Literal ID="ML_0207" runat="server" meta:resourcekey="ML_0207">Job Category</asp:Literal>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlStaffTyp" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="ddlStaffTyp"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>"
                                                                    InitialValue="0" ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator15"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="ML_0210" runat="server" meta:resourcekey="ML_0210">Job title</asp:Literal>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtJobTitle" runat="server"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Literal ID="ML_0212" runat="server" meta:resourcekey="ML_0212">Joining Date</asp:Literal>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtDateJoin" runat="server"></asp:TextBox>
                                                                <asp:ImageButton ID="calimg2" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                    CausesValidation="false" AlternateText="Select Joining Date" runat="server" meta:resourcekey="calimg2" /><cc1:CalendarExtender
                                                                        ID="CalJoinDate" runat="server" PopupButtonID="calimg2" TargetControlID="txtDateJoin">
                                                                    </cc1:CalendarExtender>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txtDateJoin"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                    ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator18"></asp:RequiredFieldValidator>
                                                            </td>
                                                            <td>
                                                                <asp:Literal ID="ML_0217" runat="server" meta:resourcekey="ML_0217">End Date</asp:Literal>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtleftdate" runat="server"></asp:TextBox>
                                                                <asp:ImageButton ID="calImg3" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                    CausesValidation="false" AlternateText="Select Left Date" runat="server" meta:resourcekey="calImg3" /><cc1:CalendarExtender
                                                                        ID="CalExtLeftDate" runat="server" PopupButtonID="calImg3" TargetControlID="txtleftdate">
                                                                    </cc1:CalendarExtender>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Literal ID="ML_0221" runat="server" meta:resourcekey="ML_0221">Home School</asp:Literal>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlSchools" runat="server" CssClass="">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ControlToValidate="ddlSchools"
                                                                    Display="Dynamic" InitialValue="0" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                    ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator29"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" colspan="2">
                                                    <asp:Literal ID="ML_0224" runat="server" meta:resourcekey="ML_0224">openSIS access</asp:Literal>
                                                    <div class="bevel_horline">
                                                    </div>
                                                    <table border="0">
                                                        <%-- opensis access table--%>
                                                        <tr>
                                                            <td valign="top">
                                                                <asp:Literal ID="ML_0225" runat="server" meta:resourcekey="ML_0225">openSIS access</asp:Literal>
                                                            </td>
                                                            <td align="left">
                                                                <asp:RadioButtonList ID="rbtnOpenAccess" runat="server" RepeatDirection="Horizontal"
                                                                    OnSelectedIndexChanged="rbtnOpenAccess_SelectedIndexChanged" AutoPostBack="true">
                                                                    <asp:ListItem OnClick="RadioButtonFunc(this);" Value="Y" meta:resourcekey="ML_0227">Yes</asp:ListItem>
                                                                    <asp:ListItem OnClick="RadioButtonFunc(this);" Value="N" meta:resourcekey="ML_0228">No</asp:ListItem>
                                                                </asp:RadioButtonList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="rbtnOpenAccess"
                                                                    Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>"
                                                                    ValidationGroup="vgSchlInfo" meta:resourcekey="RequiredFieldValidator8"></asp:RequiredFieldValidator>
                                                                <%-- <asp:CustomValidator ID="CustomValidator1" runat="server"  ValidationGroup="vgSchlInfo" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"  ClientValidationFunction="ValidateOpenAccessCheckboxlist"></asp:CustomValidator>--%>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <%--<asp:Panel ID="pnlOpenAcces" runat="server" >--%>
                                                    <div id="divOpenAcces" style="display: block">
                                                        <div>
                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Literal ID="ML_0230" runat="server" meta:resourcekey="ML_0230">School Access</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:CheckBoxList ID="chkschools" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                                                                        </asp:CheckBoxList>
                                                                        <asp:CustomValidator ID="cvlChkSchl" runat="server" ValidationGroup="vgSchlInfo"
                                                                            ErrorMessage="<div align='center' class='alert'>Please Select atleast one School</div>"
                                                                            ClientValidationFunction="ValidateSchlCheckboxlist" Enabled="false" meta:resourcekey="cvlChkSchl"></asp:CustomValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Literal ID="ML_0233" runat="server" meta:resourcekey="ML_0233">Staff UserName</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtStaUsrnam" runat="server"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvUsernam" runat="server" ControlToValidate="txtStaUsrnam"
                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                            ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvUsernam"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Literal ID="ML_0236" runat="server" meta:resourcekey="ML_0236">Staff Password</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtStaPass" runat="server" TextMode="Password"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvPass" runat="server" ControlToValidate="txtStaPass"
                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                            ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvPass"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Literal ID="ML_0239" runat="server" meta:resourcekey="ML_0239">Secret Question</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <%--<asp:TextBox ID="txtSecQues" runat="server"></asp:TextBox>--%>
                                                                        <asp:DropDownList ID="ddlsecrQues" runat="server">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvSecretQues" runat="server" ControlToValidate="ddlsecrQues"
                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>"
                                                                            InitialValue="0" ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvSecretQues"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Literal ID="ML_0242" runat="server" meta:resourcekey="ML_0242">Secret Answer</asp:Literal>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtSecrAnsr" runat="server"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvSecrAnsr" runat="server" ControlToValidate="txtSecrAnsr"
                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                            ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvSecrAnsr"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                        <div>
                                                            <table>
                                                                <tr>
                                                                    <td valign="top">
                                                                        <asp:Literal ID="ML_0245" runat="server" meta:resourcekey="ML_0245">Library Access</asp:Literal>
                                                                    </td>
                                                                    <td align="left">
                                                                        <asp:RadioButtonList ID="rbtnLibAcc" runat="server" RepeatDirection="Horizontal"
                                                                            OnSelectedIndexChanged="rbtnLibAcc_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem OnClick="RadioButtonFunclib(this);" Value="Y" meta:resourcekey="ML_0247">Yes</asp:ListItem>
                                                                            <asp:ListItem OnClick="RadioButtonFunclib(this);" Value="N" meta:resourcekey="ML_0248">No</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                        <asp:RequiredFieldValidator ID="rfvLibAcces" runat="server" ControlToValidate="rbtnLibAcc"
                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please select one option</div>"
                                                                            ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvLibAcces"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <table>
                                                                <tr>
                                                                    <td valign="top">
                                                                        <%-- <asp:Panel ID="pnlLib" runat="server" >--%>
                                                                        <div id="divlib" style="display: block">
                                                                            <table>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0250" runat="server" meta:resourcekey="ML_0250">Library Card Number</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:TextBox ID="txtLibCrdNo" runat="server" ReadOnly="true"></asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="rfvCardNo" runat="server" ControlToValidate="txtLibCrdNo"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                                                                            ValidationGroup="vgSchlInfo" Enabled="false" meta:resourcekey="rfvCardNo"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0253" runat="server" meta:resourcekey="ML_0253">Library Classification</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:DropDownList ID="ddlLibCLass" runat="server" CssClass="">
                                                                                        </asp:DropDownList>
                                                                                        <asp:RequiredFieldValidator ID="rfvLibCLas" runat="server" ControlToValidate="ddlLibCLass"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                                            ValidationGroup="vgSchlInfo" InitialValue="0" Enabled="false" meta:resourcekey="rfvLibCLas"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td valign="top">
                                                                                        <asp:Literal ID="ML_0256" runat="server" meta:resourcekey="ML_0256">Status</asp:Literal>
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:DropDownList ID="ddlStatus" runat="server" CssClass="">
                                                                                        </asp:DropDownList>
                                                                                        <asp:RequiredFieldValidator ID="rfvStatus" runat="server" ControlToValidate="ddlStatus"
                                                                                            Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Please Select one option</div>"
                                                                                            ValidationGroup="vgSchlInfo" InitialValue="0" Enabled="false" meta:resourcekey="rfvStatus"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                        <%--</asp:Panel>--%>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <%--</asp:Panel>--%>
                                                </td>
                                            </tr>
                                            <%-- opensis access table--%>
                                        </table>
                                    </asp:View>
                                    <asp:View ID="ViewCertificate" runat="server">
                                        <table>
                                            <tr>
                                                <td align="right">
                                                    <asp:ImageButton ID="ibtnAddNew" runat="server" ImageUrl="~/App_Themes/main/images/add.png" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <asp:GridView ID="gvCertficates" runat="server" AutoGenerateColumns="false" OnRowDataBound="gvCertficates_RowDataBound"
                                                        ShowHeader="false">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <table>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertNameHeader" Text='<%#Eval("stf_cert_nm")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0264" runat="server" meta:resourcekey="ML_0264">Certification Name</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertName" Text='<%#Eval("stf_cert_nm")%>'></asp:Label>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0266" runat="server" meta:resourcekey="ML_0266">Certificate Short Name</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertShortName" Text='<%#Eval("stf_cert_short_nm")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0268" runat="server" meta:resourcekey="ML_0268">Certification Code</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertCode" Text='<%#Eval("stf_cert_cd")%>'></asp:Label>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0270" runat="server" meta:resourcekey="ML_0270">Certificate Date</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertDate" Text='<%#Eval("stf_cert_dt") %>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0272" runat="server" meta:resourcekey="ML_0272">Certification Expiry/Expired Date</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertExpDate" Text='<%#Eval("stf_cert_exp_dt") %>'></asp:Label>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0274" runat="server" meta:resourcekey="ML_0274">Primary Certification</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblPrimryCert" Text='<%#Eval("stf_pri_cert_ind")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:Literal ID="ML_0276" runat="server" meta:resourcekey="ML_0276">Cerification Description</asp:Literal>
                                                                            </td>
                                                                            <td valign="top">
                                                                                <asp:Label runat="server" ID="lblCertDesc" Text='<%#Eval("stf_cert_desc")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:View>
                                </asp:MultiView>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <table cellpadding="10" cellspacing="0" width="100%">
                                    <tr>
                                        <td colspan="2">
                                            <div class="bevel_horline">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                        <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="~/App_Themes/main/images/add_student_back.png"
                                                OnClick="btnPrev_Click" CausesValidation="false" Visible="false" />                    
                                        </td>
                                        <td align="right">
                        <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/App_Themes/main/images/add_student_next.png"
                                                OnClick="btnNext_Click" ValidationGroup="vgDemoInfo" />                    
                        <asp:Button ID="btnSave" runat="server" Visible="false" CssClass="save_button" OnClick="btnSave_Click"
                                                meta:resourcekey="btnSave" />                    
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div class="clear_small">
    </div>
    <asp:Panel ID="panelAddCert" runat="server" Style="display: none;" CssClass="ModalPopup"
        Width="500" Height="256">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td class="modal_header_left bottom_black">
                    &nbsp;
                </td>
                <td class="modal_header_bg" valign="top">
                    <div class="modal_header">
                        <asp:Literal ID="ML_0035" runat="server" meta:resourcekey="ML_0035" Text="Add Certification"></asp:Literal></div>
                </td>
            </tr>
            <tr>
                <td class="modal_rtgrey">
                    &nbsp;
                </td>
                <td class="modal_bg">
                    <div style="overflow: auto; overflow-x: hidden; width: 390px; height: 150px;">
                        <table align="left" cellpadding="4" cellspacing="0">
                            <tr>
                                <td valign="top">
                                    <asp:Literal ID="ML_0282" runat="server" meta:resourcekey="ML_0282">Certificate Full Name</asp:Literal>
                                </td>
                                <td class="colon">
                                    :
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="txtCertName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtCertName"
                                        Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                        ValidationGroup="valgrpCert" meta:resourcekey="RequiredFieldValidator20"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:Literal ID="ML_0286" runat="server" meta:resourcekey="ML_0286">Certificate Short Name</asp:Literal>
                                </td>
                                <td class="colon">
                                    :
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="txtCertShrtName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:Literal ID="ML_0289" runat="server" meta:resourcekey="ML_0289">Certification Code</asp:Literal>
                                </td>
                                <td class="colon">
                                    :
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="txtCertCode" runat="server" MaxLength="5"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Literal ID="ML_0292" runat="server" meta:resourcekey="ML_0292">Certificate Date</asp:Literal>
                                </td>
                                <td class="colon">
                                    :
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtCertDate" runat="server"></asp:TextBox>
                                    <asp:ImageButton ID="imgCal5" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                        CausesValidation="false" AlternateText="Select Certificate Date" runat="server"
                                        meta:resourcekey="imgCal5" />
                                    <cc1:CalendarExtender ID="calExtCertDate" runat="server" PopupButtonID="imgCal5"
                                        TargetControlID="txtCertDate">
                                    </cc1:CalendarExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txtCertDate"
                                        Display="Dynamic" ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>"
                                        ValidationGroup="valgrpCert" meta:resourcekey="RequiredFieldValidator19"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Literal ID="ML_0298" runat="server" meta:resourcekey="ML_0298">Certification Expiry/Expired Date</asp:Literal>
                                </td>
                                <td class="colon">
                                    <asp:Literal ID="ML_0299" runat="server" meta:resourcekey="ML_0299">:</asp:Literal>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtCertExpDat" runat="server"></asp:TextBox>
                                    <asp:ImageButton ID="imgCal6" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                        CausesValidation="false" AlternateText="Select Certificate expiry Date" runat="server"
                                        meta:resourcekey="imgCal6" />
                                    <cc1:CalendarExtender ID="CalExtCertExpDt" runat="server" PopupButtonID="imgCal6"
                                        TargetControlID="txtCertExpDat">
                                    </cc1:CalendarExtender>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:Literal ID="ML_0303" runat="server" meta:resourcekey="ML_0303">Primary Certification</asp:Literal>
                                </td>
                                <td class="colon">
                                    :
                                </td>
                                <td valign="top">
                                    <asp:RadioButtonList runat="server" ID="rbtnPrimrCert" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="Y" meta:resourcekey="ML_0306">Yes</asp:ListItem>
                                        <asp:ListItem Value="N" meta:resourcekey="ML_0307">No</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:Literal ID="ML_0308" runat="server" meta:resourcekey="ML_0308">Certification Description</asp:Literal>
                                </td>
                                <td class="colon">
                                    <asp:Literal ID="ML_0309" runat="server" meta:resourcekey="ML_0309">:</asp:Literal>
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="txtCertDesc" runat="server" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="separator_hor">
                    </div>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="right">
                                <asp:Button ID="btnSaveCert" runat="server" CssClass="modalbtn_active" Text="Save"
                                    OnClick="btnSaveCert_Click" ValidationGroup="valgrpCert" meta:resourcekey="btnSaveCert" />
                                <asp:Button ID="btnCancel" runat="server" CssClass="modalbtn_active" Text="Cancel"
                                    CausesValidation="false" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender4')"
                                    meta:resourcekey="btnCancel" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="ModalPopupExtender4" runat="server" BackgroundCssClass="Inactive"
        TargetControlID="ibtnAddNew" PopupControlID="panelAddCert" Enabled="true" />
    <asp:HiddenField ID="hdnCat" runat="server" />
    <asp:HiddenField ID="hdnPasswrd" runat="server" />
    <asp:HiddenField ID="hdnBlankgrid" runat="server" />
    <asp:HiddenField ID="hdndisdesc" runat="server" />
    <script type="text/javascript" language="javascript">
        function CheckSameAddress() {



            var BState = document.getElementById("ctl00_ContentPlaceHolder1_ddlSecnState");

            if (document.getElementById("ctl00_ContentPlaceHolder1_chkSame").checked == true) {
                var Text1 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtAdd1.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd1.value = Text1;

                var Text2 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtAdd2.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd2.value = Text2;

                var Text3 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtCity.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnCity.value = Text3;

                var Text4 = document.aspnetForm.ctl00_ContentPlaceHolder1_txtZip.value;
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnZip.value = Text4;



                var ani = document.getElementById("ctl00_ContentPlaceHolder1_ddlState");

                for (var selIndex = ani.length - 1; selIndex >= 0; selIndex--) {
                    if (ani.options[selIndex].selected) {
                        var value = ani.options[selIndex].value;

                        var i = 0;
                        var end = BState.options.length;

                        while (i < end) {

                            if (BState.options[i].value == value) {
                                BState.options[i].selected = true;
                                BState.selectedIndex = i;
                                return;
                            }
                            i++;
                        }
                    }
                }










            }
            else {
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd1.value = "";
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnAdd2.value = "";
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnCity.value = "";
                document.aspnetForm.ctl00_ContentPlaceHolder1_txtSecnZip.value = "";
                BState.selectedIndex = 0;

            }
        }



        function RadioButtonFunc(control) {
            if (control.value == "Y") {

                // document.getElementById('divOpenAcces').style.display = "Block";
                document.getElementById('divOpenAcces').style.display = "block";
            }
            else if (control.value == "N") {

                document.getElementById('divOpenAcces').style.display = "none";
            }
        }
        function RadioButtonFunclib(control) {
            if (control.value == "Y") {

                // document.getElementById('divOpenAcces').style.display = "Block";
                document.getElementById('divlib').style.display = "block";
            }
            else if (control.value == "N") {

                document.getElementById('divlib').style.display = "none";
            }
        }

        function RadioButtonFuncdisability(control) {
            if (control.value == "Y") {

                // document.getElementById('divOpenAcces').style.display = "Block";
                document.getElementById('divDisability').style.display = "block";
                //document.getElementById('txtDisDesc').value = document.getElementById('hdndisdesc').value

            }
            else if (control.value == "N") {

                document.getElementById('divDisability').style.display = "none";
            }
        }
        function ShowHyperlink() {

            var hyperlink = document.getElementById("ctl00_ContentPlaceHolder1_divLabel");

            hyperlink.style.display = 'block';
        }

        function HideHyperlink() {

            var hyperlink = document.getElementById("ctl00_ContentPlaceHolder1_divLabel");
            hyperlink.style.display = 'none';
        }

        
    </script>

</asp:Content>
